package com.itheima.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.SmsHomeAdvertise;
import com.itheima.vo.PageResult;

import java.util.List;

/**
* @author lenovo
* @description 针对表【sms_home_advertise(首页轮播广告表)】的数据库操作Service
* @createDate 2022-10-11 14:26:17
*/
public interface SmsHomeAdvertiseApi {

    //添加广告
    void saveAdvertise(SmsHomeAdvertise advertise);

    //分页查询广告列表
    PageResult findAdvertise(SmsHomeAdvertise advertise, Integer pageNum, Integer pageSize);

    //广告删除
    Boolean deleteAdvertise(List<Long> ids);

    //修改上下线状态
    void updateStatus(SmsHomeAdvertise advertise);

    //根据id查询广告
    SmsHomeAdvertise findAdvertiseById(Long id);
}
